package cn.example.vip.mall.pay.service.impl;

import cn.example.vip.mall.pay.entity.PayLog;
import cn.example.vip.mall.pay.mapper.PayLogMapper;
import cn.example.vip.mall.pay.service.PayLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class PayLogServiceImpl extends ServiceImpl<PayLogMapper, PayLog> implements PayLogService {
	@Autowired
	private PayLogMapper payLogMapper;
	
	/**
	 * 记录日志
	 * @param payLog
	 */
	@Transactional
	@Override
	public void addPayLog(PayLog payLog) {
		payLogMapper.insert(payLog);
	}
}
